import request from '@/utils/request.js'

export const updatePhone = (data) => {
	return request({
		url: '/user/phone',
		method: 'put',
		data
	})
}

export const updatePassword = (data) => {
	return request({
		url: '/user/password',
		method: 'put',
		data
	})
}

export const updateInfo = (data) => {
	return request({
		url: '/user',
		method: 'put',
		data
	})
}

export const baseData = (id) => {
	return request({
		url: `/user/base/${id}`,
		method: 'get'
	})
}

export const checkFans = (data) => {
	return request({
		url: '/user/check',
		method: 'get',
		data
	})
}

export const updateFans = (data) => {
	return request({
		url: '/user/fans',
		method: 'post',
		data
	})
}

export const clazzMember = (data) => {
	return request({
		url: '/user/clazz',
		method: 'get',
		data
	})
}

export const getAttentionUser = (data) => {
	return request({
		url: '/user/attention',
		method: 'get',
		data
	})
}

export const getFansUser = (data) => {
	return request({
		url: '/user/fans',
		method: 'get',
		data
	})
}

export const getScoreList = (id) => {
	return request({
		url: `/score/user/${id}`,
		method: 'get'
	})
}